package com.mdd.cms.params;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.mdd.common.validate.EditGroup;
import lombok.Data;
import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;

@Data
public class SecurityStudioParams {
    @NotNull(message = "请输入安全学习编号",groups = {EditGroup.class})
    private Long id;
    /**
     * 视频标题
     */
    @NotNull(message = "请输入视频表")
    @Max(value = 80,message = "标题字数不能超过80个字")
    private String title;
    /**
     * 视频封面地址
     */
    @NotNull(message = "请上传视频封面")
    @JsonProperty(value = "imgUrl")
    private String imgUrl;
    /**
     * 视频地址
     */
    @NotNull(message = "请上传视频")
    private String videoUrl;
    /**
     * 是否推荐
     */
    private Boolean isTop;
}
